package com.yanmaohu.yulia.bean;

public final class DatetimeValueExpressionMinusIntervalTerm implements DatetimeValueExpression {

    private int beginIndex;
    private int endIndex;
    private DatetimeValueExpression datetimeValueExpression;
    private IntervalTerm intervalTerm;

    public DatetimeValueExpressionMinusIntervalTerm(DatetimeValueExpression datetimeValueExpression, IntervalTerm intervalTerm) {
        this.beginIndex = datetimeValueExpression.getBeginIndex();
        this.endIndex = intervalTerm.getEndIndex();
        this.datetimeValueExpression = datetimeValueExpression;
        this.intervalTerm = intervalTerm;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public DatetimeValueExpression getDatetimeValueExpression() {
        return datetimeValueExpression;
    }

    public IntervalTerm getIntervalTerm() {
        return intervalTerm;
    }

}
